import Vue from 'vue'
import VueRouter from 'vue-router'
import Hello from '../Hello'
import Login from '../Login'
import Ele from '../components/Ele'
import Register from '../Register'
import Content from '../Content'

Vue.use(VueRouter)

const routes = [
  {path: '/hello', name: 'hello', component: Hello},
  {path: '/login', component: Login, },
  {path: '/register', component: Register},
  {path: '/content', component: Content,children: [
      {path: '/ele', component: Ele},
    ]},
  {path: '/register', component: Register},
]

export default new VueRouter({
  routes,
  mode: 'history'
})
